home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news.sprintlink.net!news1!news
- From: John K Gotwals <gotwals@holli.com>
- Subject: Re: two tricky questions
- X-Nntp-Posting-Host: laf-ts0-06.holli.com
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <30E707C7.5D8F@holli.com>
- Sender: news@iquest.net (News Admin)
- Content-Transfer-Encoding: 7bit
- Organization: WL Computer Systems
- References: <4c4tbn$ga9@sunburst.ccs.yorku.ca> <4c5dn1$j5r@news.xmission.com> <4c6v9u$jdl@news.xmission.com>
- Mime-Version: 1.0
- Date: Sun, 31 Dec 1995 21:59:35 GMT
- X-Mailer: Mozilla 2.0b4 (WinNT; I)
-
- Todd Knarr wrote:
- >
- > <snip>
- >
- > In general, I've found that classes that allocate dynamic memory and use
- > pointers to it also need non-trivial copy constructors and copy assignment
- > operators to avoid exactly this sort of problem.
- >
-
- In addition to the two items you named, a destructor is also needed.
- ** John
-
- --
- I wouldn't want to belong to any club that would accept me as a
- member. Groucho Marx
-